package cn.itsource.controller;

import cn.itsource.domain.Student;
import cn.itsource.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("student")
public class StudentController {
    @Autowired
    private IStudentService service;
    @RequestMapping("/loadall")
    public List<Student> loadAll(){
        List<Student> list = service.loadAll();
        return list;
    }
}
